<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path;
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Hyves.net - Always in touch with your friends</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta content="info@hyves.net" name="owner" />
		<meta content="http://www.hyves.net" name="author" />
		<meta content="General" name="rating" />
		<link href="<%=basePath%>/style/main.css" type="text/css"
			rel="stylesheet" />
		<link href="<%=basePath%>/style/style20.css" type="text/css"
			rel="stylesheet" />
		<link href="images/favicon.ico" type="image/x-icon"
			rel="shortcut icon" />
		<link href="<%=basePath%>/style/ie6.css" type="text/css"
			rel="stylesheet" />
		<link href="<%=basePath%>/style/pagination.css" type="text/css"
			rel="stylesheet" />
		<script language="javascript"
			src="<%=basePath%>/script/jquery1.3.2.js" type="text/javascript"></script>
		<script language="javascript"
			src="<%=basePath%>/script/jquery.form.js" type="text/javascript"></script>
		<script language="javascript"
			src="<%=basePath%>/script/jquery.pagination.js"
			type="text/javascript"></script>
		<script language="javascript" type="text/javascript">
				function setSubSort(id){
					$("#searchInfoList").html("<img alt='Loading...' src='<%=basePath%>/images/loading.gif'></img>");
					$("#subSortId").val(id);
					$("#infoItemListForm").ajaxSubmit({success : function(data) {
						$("#searchInfoList").html(data);
						$("html, body").animate({scrollTop:0}, "slow");
					}});
				}
				$(function(){
					/* 分页插件Pagination */
					var _sortId = $("#sortId").val();
					var _subSortId = $("#subSortId").val();
					var _total_num = $("#total").val();
					$("#pagination").pagination(_total_num, {
						items_per_page : 10,
						callback : pageselectCallback
					});
					function pageselectCallback(page_index, jq) {
						$.ajax({
							type : "POST",
							dataType : "html",
							url : "<%=basePath%>/info/search",
							data : {
								page_index : page_index,
								maxResult : 10,
								id: _sortId,
								sub:_subSortId
							},
							success : function(data) {
								$("#searchInfoList").html(data);
							}
						});
					}
					/* 新建栏目的ajax表单提交 */
					$('#infoSortSubmitBtn:a').click(function() {
						$("#infoSortForm").ajaxSubmit({success : function(data) {
								alert($("#infoSortSubmitBtn").val()+"成功!");
								location.reload();
							}});
							return false;
						});
					/* 新建二级栏目的ajax表单提交 */
					$("#infoSortSubSubmitBtn").click(function() {
						$("#infoSubSortForm").ajaxSubmit({success : function(data) {
								alert($("#infoSortSubSubmitBtn").val()+"成功!");
								location.reload();
							}});
							return false;
						});
				});
		</script>
	</head>
	<body>
		
		<jsp:include page="/site/common/header.jsp"></jsp:include>

		<div id="page-con">
			<div id="page-con-hdr">
				<div class="box">
					<div class="box-con-bg"></div>
				</div>
				<div class="border"></div>
				<div class="bg"></div>
			</div>
			<!-- page-con-hdr -->
			<div id="page-con-body">
				<!-- search menu start -->
				<div class="wrapper w4">
					<div class="section s1">
						<div class="box">
							<div class="keyWord">
								<div class="blank5"></div>
								<form id="infoItemListForm" action="<%=basePath%>/info/search"
									method="post">
									<p class="main">
										<span>[热门菜系]</span>
										<input id="subSortId" type="hidden" name="sub"
											value="${sub }" />
										<s:iterator value="infoSubSortList" id="issl">
											<a href="javascript:setSubSort(${issl.id })">${issl.name
												}</a>
										</s:iterator>
										<a href="javascript:setSubSort(0)">全部</a>
									</p>
									<p class="district">
										<span>[热门地段]</span>
										<s:iterator value="infoSubSortList" id="issl">
											<a href="#">${issl.name }</a>
										</s:iterator>
										<a href="/eat/search/">全部</a>
									</p>
									<p class="tag">
										<span>[热门菜肴]</span>
										<s:iterator value="infoSubSortList" id="issl">
											<a href="/eat/search/main/火锅">${issl.name }</a>
										</s:iterator>
										<a href="/eat/search/">全部</a>
									</p>
									<p class="cost">
										<span>[排序]</span><a href="/eat/search/cost/0-50">价格 上</a><a
											href="/eat/search/cost/50-100">价格 下</a><a
											href="/eat/search/cost/100">综合评分</a><a href="/eat/search/">全部</a>
									</p>
								</form>
								<div class="blank5"></div>
							</div>
						</div>
					</div>
				</div>
				<!-- search menu end -->
				<div class="wrapper w8">
					<div class="section s1">
						<div class="box">
							<div class="box-hdr">
								<div class="box-hdr-bg"></div>
								<div class="box-hdr-inner">
									<h2>
										美食餐饮 
									</h2>
								</div>
							</div>
							<div class="box-con">
								<div class="box-con-bg"></div>
								<div class="box-con-inner">
									<input id="sortId" type="hidden" value="${id }" />
									<input id="total" type="hidden" value="${total }" />
									<div class="content-item-list" id="searchInfoList">
										<img alt="Loading..." src="<%=basePath%>/images/loading.gif"></img>
									</div>
									</br>
									<div id="pagination" class="pagination paging"></div>
								</div>
							</div>
						</div>
						<div class="box groups-photos">
							<div class="box-hdr">
								<div class="box-hdr-bg"></div>
								<div class="box-hdr-inner">
									<h2>
										<span class="box-icon icon icon-picture">&nbsp;</span> New
										photos &amp; videos in your hyves
									</h2>
								</div>
							</div>
							<div class="box-con">
								<div class="box-con-bg"></div>
								<div class="box-con-inner"></div>
							</div>
						</div>
					</div>
					<!-- section s1 -->
					<div class="section s2">
						<div class="box groups-network">
							<div class="box-hdr">
								<div class="box-hdr-bg"></div>
								<div class="box-hdr-inner">
									<h2>
										<span class="box-icon icon icon-friends">&nbsp;</span> Hyves
										in your network
									</h2>
								</div>
							</div>
							<div class="box-con">
								<div class="box-con-bg"></div>
								<div class="box-con-inner">
									<div class="box-con-sctn first">
										<ul class="avatar-list">
											<li class="first">
												<div class="avatar medium">
													<a class="avatar-link" id="mop_hub_11366118_416064149"
														title="FIETFIEUW(L)" href="http://fiet--fieuw.hyves.nl/"><img
															class="avatar-img mediaicon14" alt="FIETFIEUW(L)"
															src="group.files/791804969_14_z7tn.jpg" /> </a>
													<p class="avatar-name">
														<a href="http://fiet--fieuw.hyves.nl/">FIETFIEUW<img
																title="(l)" alt="(l)"
																src="group.files/smiley_love_heart.gif" border="0" /> </a>
														(5)
													</p>
												</div>
											</li>
											<li>
												<div class="avatar medium">
													<a class="avatar-link" id="mop_hub_11366116_646604282"
														title="BRYAN GONZALEZ RUIZ.(L)"
														href="http://bryanruiz22.hyves.nl/"><img
															class="avatar-img mediaicon14"
															alt="BRYAN GONZALEZ RUIZ.(L)"
															src="group.files/791802544_14_HS36.jpg" /> </a>
													<p class="avatar-name">
														<a href="http://bryanruiz22.hyves.nl/">BRYAN GONZALEZ
															RUIZ.<img title="(l)" alt="(l)"
																src="group.files/smiley_love_heart.gif" border="0" /> </a>
														(13)
													</p>
												</div>
											</li>
											<li class="first">
												<div class="avatar medium">
													<a class="avatar-link" id="mop_hub_11365963_773367903"
														title="ik heb haat aan mytime hyves"
														href="http://mytime1234.hyves.nl/"><img
															class="avatar-img mediaicon14"
															alt="ik heb haat aan mytime hyves"
															src="group.files/791778001_14_OCj0.jpg" /> </a>
													<p class="avatar-name">
														<a href="http://mytime1234.hyves.nl/">ik heb haat aan
															mytime hyves</a> (5)
													</p>
												</div>
											</li>
											<li>
												<div class="avatar medium">
													<a class="avatar-link" id="mop_hub_11365952_395140760"
														title="coolzeg" href="http://coolzegie.hyves.nl/"><img
															class="avatar-img mediaicon14" alt="coolzeg"
															src="group.files/791775598_14_wD5q.jpg" /> </a>
													<p class="avatar-name">
														<a href="http://coolzegie.hyves.nl/">coolzeg</a> (5)
													</p>
												</div>
											</li>
										</ul>
									</div>
									<div class="box-con-sctn">
										<ul class="more">
											<li class="first">
												<a href="http://www.hyves.nl/hyves/fromfriendsgroup/">Check
													out your friends' hyves!</a>
											</li>
											<li>
												<a href="http://www.hyves.nl/hyves/biggest/">Check out
													the most popular hyves of Hyves!</a>
											</li>
											<li>
												<a href="http://www.hyves.nl/hyves/hubcategory/">Hyve
													categories</a>
											</li>
										</ul>
									</div>
									<div class="box-con-sctn search-groups">
										<h4>
											<a href="http://www.hyves.nl/search/hyves/">Search for
												hyves</a>
										</h4>
										<form action="http://www.hyves.nl/hyves/search/" method="get">
											<input type="hidden" value="35" />
											<input size="16" name="searchterms" />
											<span class="button primary-button"><span><span
													class="icon icon-search"> <input type="submit"
															value="Search" /> </span> </span> </span>
										</form>
									</div>
								</div>
							</div>
						</div>
						<div class="box groups-agenda">
							<div class="box-hdr">
								<div class="box-hdr-bg"></div>
								<div class="box-hdr-inner">
									<h2>
										<a href="http://www.hyves.nl/hyves/events/"><span
											class="box-icon icon icon-calendar-view-day">&nbsp;</span>
											Agenda of your hyves </a>
									</h2>
								</div>
							</div>
							<div class="box-con">
								<div class="box-con-bg"></div>
								<div class="box-con-inner">
									<div class="box-con-sctn first">
										Your hyve(s) haven't got any agenda items yet. Check out new
										and popular hyves in the list of suggestions on the right-hand
										side of the page!
										<br />
										<br />
										<div class="more">
											<span class="rsaquo">› </span><a
												href="http://www.hyves.nl/hyves/events/">More...</a>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
					<!-- section s2 -->
				</div>
				<!-- wrapper w8 -->
				<div class="wrapper w4">
					<div class="section s1">
						<div class="box group-wantins">
							<div class="box-hdr">
								<div class="box-hdr-bg"></div>
								<div class="box-hdr-inner">
									<h2>
										You want to join:
									</h2>
								</div>
							</div>
							<div class="box-con">
								<div class="box-con-bg"></div>
								<div class="box-con-inner">
									<div class="box-con-sctn first"></div>
								</div>
							</div>
						</div>
					</div>
					<!-- section s1 -->
				</div>
				<!-- wrapper w4 -->
				<div class="border"></div>
				<div class="bg"></div>
			</div>
			<!-- page-con-body -->
			<div id="page-con-ftr">
				<div class="border"></div>
				<div class="bg"></div>
			</div>
			<!-- page-con-ftr -->
		</div>

		<jsp:include page="/site/common/footer.jsp"></jsp:include>

	</body>
</html>